package java_learn.java_jinjie.IO;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @Author: 李浩然
 * @Date: 2021/1/25 1:01 下午
 */
public class Demo03Writer {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("java_learn/src/main/java/java_learn/java_jinjie/IO/write.txt");
        char[] cs = {'a', 'b', 'c', 'd', 'e'};
        fw.write(cs);
        fw.write(cs, 1, 3);
        String s = "123324";
        fw.write(s);
        fw.close();
    }
}
